package com.ts.api.manage.filesystem;

import com.ts.framework.domain.filesystem.response.UploadFileResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.multipart.MultipartFile;

@Api(tags = "文件系统管理接口", description = "负责文件管理增删改查等功能")
public interface FileSystemControllerApi {
    @ApiOperation("文件上传")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "multipartFile", value = "文件信息", dataType = "MultipartFile",paramType = "file",required = true),
            @ApiImplicitParam(name = "filetag", value = "文件标签", dataType = "String"),
            @ApiImplicitParam(name = "businesskey", value = "业务key", dataType = "String"),
            @ApiImplicitParam(name = "metadata", value = "元数据", dataType = "String")

    })
    public UploadFileResult uploadFile(MultipartFile multipartFile, String filetag, String businesskey, String metadata);
}
